<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body {
            background-color: #ddd;
        }
        .box {
            width: 400px;
            height: 500px;
            border: 1px solid red;
            margin: 0 auto;
        }
        .header {
            position: relative;
            width: 250px;
            height: 125px;
            border-radius: 125px 125px 0 0;
            margin: 10px auto;
            background-color: green;
        }
        .header::before,
        .header::after {
            content: '';
            position: absolute;
            top: 60px;
            width: 20px;
            height: 20px;
            background-color: #fff;
            border-radius: 50%;
        }
        .header::before {
            left: 65px;
        }
        .header::after {
            right: 65px;
        }
        .main {
            position: relative;
            width: 250px;
            height: 250px;
            background-color: green;
            margin: 10px auto 0 auto;
            border-radius: 0 0 20px 20px;
        }
        .main::before,
        .main::after {
            content: '';
            position: absolute;
            top: 20px;
            width: 30px;
            height: 180px;
            background-color: green;
            border-radius: 10px;
        }
        .main::before {
            left: -40px;
        }
        .main::after {
            right: -40px;
        }
        .footer {
            position: relative;
            width: 160px;
            margin: 0 auto;
        }
        .footer::before,
        .footer::after {
            content: '';
            position: absolute;
            top: 0;
            width: 30px;
            height: 90px;
            background-color:green;
            border-radius: 0 0 10px 10px;
        }
        .footer::after {
            right: 0;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="header"></div>
        <div class="main"></div>
        <div class="footer"></div>
    </div>
</body>
</html>